Skip to content

Add pre-commit hook for yaml formatting - #277

Merged
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:yaml-format
Aug 18, 2026
Merged

Add pre-commit hook for yaml formatting#277
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:yaml-format

Conversation

@gab-arrobo

Copy link
Copy Markdown
Contributor

No description provided.

@gab-arrobo
gab-arrobo requested review from a team and a lite review from Copilot August 18, 2026 21:44
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces YAML formatting enforcement via pre-commit and applies consistent YAML formatting across existing configuration and GitHub workflow files.

Changes:

  • Add a yamlfmt pre-commit hook and reformat .pre-commit-config.yaml accordingly.
  • Apply YAML formatting updates to config/simapp.yaml and various .github/*.yml files (mostly whitespace/indentation normalization).
  • Remove stray blank lines in YAML configs (e.g., .golangci.yml, Dependabot, workflows) to match the formatter output.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
config/simapp.yaml YAML reformatting (indentation/sequence formatting) plus touched inline comments.
.pre-commit-config.yaml Re-indented config and added google/yamlfmt hook.
.golangci.yml YAML whitespace cleanup (blank line removal).
.github/workflows/stale.yml YAML whitespace cleanup (blank line removal).
.github/workflows/push.yml YAML whitespace cleanup (blank line removal).
.github/workflows/main.yml YAML whitespace cleanup (blank line removal).
.github/dependabot.yml YAML whitespace cleanup (blank line removal).
Suppressed comments (1)

config/simapp.yaml:135

  • Spelling/grammar in the inline comment: use "don't" instead of "dont".
          rule-trigger: "timer,10" #dont create this bearer immediately. Create after 10 sec time.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread config/simapp.yaml
upf:
upf-name: upf.menlo.aetherproject.org
upf-port: 8805
rule-trigger: api #dont create this bearer immediately. Wait for API call
Comment thread config/simapp.yaml
arp: 6
pdb: 300
pelr: 6
rule-trigger: "timer,0" #immeidate creation of this bearer immediately. Create after 10 sec time.
Comment thread .pre-commit-config.yaml
- repo: https://codeberg.org/fsfe/reuse-tool
rev: v6.2.0
hooks:
- id: reuse
@gab-arrobo
gab-arrobo merged commit 0dbcacf into omec-project:main Aug 18, 2026
12 checks passed
@gab-arrobo
gab-arrobo deleted the yaml-format branch August 18, 2026 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants